# HG changeset patch # User alexrayne # Date 1701116604 -10800 # Mon Nov 27 23:23:24 2023 +0300 # Branch work-ar # Node ID 8d75f20ea09c02a291d7e6f06f7502bf8220502a # Parent a180cc1a9c673cb67a46549b2ed1cac69d4aa48f bundle2: fix py2 -> to styled py3 inherited method invoke, to prevent recursion. * problem of py2 super(class, self) usage described [here](https://stackoverflow.com/questions/576169/understanding-python-super-with-init-methods) * [bug](https://bz.mercurial-scm.org/show_bug.cgi?id=6854) fix diff --git a/mercurial/bundlerepo.py b/mercurial/bundlerepo.py --- a/mercurial/bundlerepo.py +++ b/mercurial/bundlerepo.py @@ -471,7 +471,7 @@ linkmapper = self.unfiltered().changelog.rev return bundlefilelog(self.svfs, f, self._cgunpacker, linkmapper) else: - return super(bundlerepository, self).file(f) + return super().file(f) def close(self): """Close assigned bundle file immediately.""" _______________________________________________ Mercurial-devel mailing list Mercurial-devel@lists.mercurial-scm.org https://lists.mercurial-scm.org/mailman/listinfo/mercurial-devel